#include "dbase.h"
#include "ui_dbase.h"

BaseDialog::BaseDialog(MainWindow *parent) :
    QDialog(parent),
    ui(new Ui::dbase)
{
    /*ui->setupUi(this);
    setLayout(ui->verticalGroupBox->layout()); //чтобы растянуть groupbox на весь диалог
	ui->tableWidget->setRowCount(0);
	unsigned int j = 0;
    for( ak_keydb::const_iterator i = parent->dbase->begin(); i != parent->dbase->end(); i++, j++ ) {
        std::string keyID = (*i).first, oid, ds;
        parent->dbase->info( keyID, oid, ds );
		QTableWidgetItem *item1=new QTableWidgetItem(QString::fromUtf8(keyID.data(), keyID.size()));
		QTableWidgetItem *item2=new QTableWidgetItem (QString::fromUtf8(ak_oids_by_oid(oid).name().data(), ak_oids_by_oid(oid).name().size()));
		QTableWidgetItem *item3=new QTableWidgetItem (QString::fromUtf8(ds.data(), ds.size()));
		ui->tableWidget->insertRow(j);
		ui->tableWidget->setItem(j,0,item1);
		ui->tableWidget->setItem(j,1,item2);
		ui->tableWidget->setItem(j,2,item3);
      }*/
}

BaseDialog::~BaseDialog()
{
    delete ui;
}
